//
//  GYOrderDtails.m
//  GoodLuck
//
//  Created by apple on 2018/3/23.
//  Copyright © 2018年 yunjiazhineng. All rights reserved.
//

#import "GYOrderDetails.h"
#import "GYOrderGoods.h"
@implementation GYOrderDetails

- (instancetype)initWithDic:(NSDictionary *)dic {
    if ([super init]) {
        [self setValuesForKeysWithDictionary:dic];
    }
    return  self;
}

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    
    if ([key isEqualToString:@"goods_list"]) {
        self.goods_list = [GYOrderGoods loadOrderGoods:value];
        
        return;
    }
    if ([key isEqualToString:@"extend_store"]) {
        self.store_phone = [value objectForKey:@"store_phone"];
        return;
    }
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}

@end
